package com.dv.driverless.service.impl;

import java.util.List;

import com.dv.driverless.domain.BasicParking;
import com.dv.driverless.domain.vo.BasicParkingVo;
import com.dv.driverless.mapper.BasicParkingMapper;
import com.dv.driverless.service.IBasicParkingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 停车位信息表Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-01
 */
@Service
public class BasicParkingServiceImpl implements IBasicParkingService
{
    @Autowired
    private BasicParkingMapper basicParkingMapper;

    /**
     * 查询停车位信息表
     *
     * @param id 停车位信息表主键
     * @return 停车位信息表
     */
    @Override
    public BasicParking selectBasicParkingById(Long id)
    {
        return basicParkingMapper.selectBasicParkingById(id);
    }

    /**
     * 查询停车位信息表列表
     *
     * @param basicParking 停车位信息表
     * @return 停车位信息表
     */
    @Override
    public List<BasicParkingVo> selectBasicParkingList(BasicParking basicParking)
    {
        return basicParkingMapper.selectBasicParkingList(basicParking);
    }

    /**
     * 新增停车位信息表
     *
     * @param basicParking 停车位信息表
     * @return 结果
     */
    @Override
    public int insertBasicParking(BasicParking basicParking)
    {
        return basicParkingMapper.insertBasicParking(basicParking);
    }

    /**
     * 修改停车位信息表
     *
     * @param basicParking 停车位信息表
     * @return 结果
     */
    @Override
    public int updateBasicParking(BasicParking basicParking)
    {
        return basicParkingMapper.updateBasicParking(basicParking);
    }

    /**
     * 批量删除停车位信息表
     *
     * @param ids 需要删除的停车位信息表主键
     * @return 结果
     */
    @Override
    public int deleteBasicParkingByIds(Long[] ids)
    {
        return basicParkingMapper.deleteBasicParkingByIds(ids);
    }

    /**
     * 删除停车位信息表信息
     *
     * @param id 停车位信息表主键
     * @return 结果
     */
    @Override
    public int deleteBasicParkingById(Long id)
    {
        return basicParkingMapper.deleteBasicParkingById(id);
    }

    /**
     * 修改停车位状态
     *
     * @param basicParking
     * @return 结果
     */
    @Override
    public int changeBasicParking(BasicParking basicParking) {
        return basicParkingMapper.changeBasicParking(basicParking);
    }
}
